from django.conf.urls.defaults import *

urlpatterns = patterns('pyceab.plan.views',
        url(r'^$', 'plans_index', name='plans_index'),
        url(r'^planner.pdf$', 'pdf_report', name='pdf_report'),
        url(r'^(?P<plan_id>\d+)/$', 'plan_detail', name='plan_detail'),
        url(r'^search/$', 'course_search', name='course_search'),
        url(r'^(?P<plan_id>\d+)/results/$', 'course_results', name='course_results'),
        url(r'^(?P<plan_id>\d+)/validate/$', 'validate_plan', name='validate_plan'),
        url(r'^(?P<plan_id>\d+)/planned_courses/$', 'planned_courses_index', name='planned_courses_index'),
        url(r'^(?P<plan_id>\d+)/planned_courses/new/$', 'add_course_to_plan', name='add_course_to_plan'),
        url(r'^(?P<plan_id>\d+)/planned_courses/(?P<planned_course_id>\d+)/delete/$', 'delete_planned_course', name='delete_planned_course'),
)
